<!-- Dom模板 -->
<template>
  <div>
    <!-- Dom内容 -->
    <div class="hus">
      <div class="home-row2">
        <div class="row1-top">
          <h2>女生</h2>
          <p>
            更多<span class="iconfont icon-arrow-right-copy-copy-copy"></span>
          </p>
        </div>
        <div class="row2-main">
          <div
            class="row2-main-alive"
            v-for="(item, index) in $store.state.homes.data"
            :key="index"
            @click="xq(item, $route.path)"
          >
            <div class="main-alive-image">
              <img :src="item.book_img_url" />
              <p class="xiao">
                <span class="iconfont icon-biao"></span>{{ item.see_num }}万
              </p>
            </div>
            <div class="main-alive-right">
              <h3>{{ item.bookname }} <span>完结</span></h3>
              <p class="jies">{{ item.describes }}</p>
              <div class="right-bott">
                <div class="right-left">
                  <p>{{ item.name }}</p>
                  <p class="leix" ref="leix">
                    <span>{{ item.typesname[0] }}</span>
                  </p>
                </div>
                <p>{{ item.score }}</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// import a from './a'; // 引入组件
import { myMixins } from "@/mixins/homeMixins.js";
export default {
  mixins: [myMixins],
  name: "",
  data() {
    return {
      msg: "测试",
      dataList: [],
    };
  },
  // 生命周期 - 创建完成（访问当前this实例）
  created() {},
  // 生命周期 - 挂载完成（访问DOM元素）
  mounted() {},
  // Vue方法定义
  methods: {},
};
</script>

<style scoped>
/* @import url(''); 引入css类 */
.hus {
  width: 100%;
  height: calc(100vh - 4.1632rem);
  overflow-y: auto;
}
.home-row2 {
  width: 95%;
  margin-left: 5%;
}
.row1-top {
  width: 100%;
  height: 1.433333rem;
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0 0.213333rem;
  padding-right: 0.8rem;
}
.row2-main {
  width: 90%;
  margin-left: 2%;
}
.row2-main-alive {
  width: 100%;
  height: 3.193333rem;
  display: flex;
  justify-content: space-between;
  text-align: left;
  margin-top: 0.133333rem;
  margin-bottom: 0.213333rem;
}

.main-alive-image {
  width: 2.64rem;
}
.main-alive-image img {
  width: 100%;
  height: 100%;
}
.xiao {
  position: relative;
  bottom: 0.566667rem;
  left: 0.133333rem;
  color: #ffffff;
}
.main-alive-right {
  width: 65%;
  height: 100%;
  position: relative;
}
.main-alive-right h3 span {
  width: 1.013333rem;
  height: 0.48rem;
  border: 1px solid #ffb887;
  display: inline-block;
  text-align: center;
  line-height: 0.48rem;
  border-radius: 5px;
  color: #ffb887;
  font-size: 0.32rem;
  font-family: "PingFangSC-bold";
}
.main-alive-right p:nth-child(2) {
  font-family: "PingFangSC-regular";
}

.jies {
  width: 100%;
  height: 0.8rem;
  /* overflow-y: auto; */
  overflow: hidden;
  color: #676767;
  margin-top: 0.133333rem;
}
.right-bott {
  width: 100%;
  height: 0.666667rem;
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  left: 0;
}
.right-left {
  width: 72%;
  align-items: center;
  display: flex;
  justify-content: space-between;
  color: #adadad;
  font-size: 0.32rem;
}
.leix {
  width: 45%;
  height: auto;
  padding: 0 0.133333rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.266667rem;
}
.leix span {
  width: auto;
  padding: 0 0.5px;
  height: 0.55rem;
  line-height: 0.55rem;
  text-align: center;
  border: 1px solid #adadad;
  border-radius: 3px;
   padding: 0 2px;
}
.home-box {
  width: 100%;
  height: 9.333333rem;
}
.right-bott > p:nth-child(2) {
  color: rgba(255, 23, 0, 100);
  font-size: 0.453333rem;
  text-align: left;
  font-family: "PingFangSC-regular";
}
</style>